import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import index from '@/components/pages/index'
import addTitle from '@/components/pages/addTitle'
import list from '@/components/pages/list'
import listdetails from '@/components/pages/listdetails'
import apply from '@/components/pages/apply'
import error from '@/components/pages/error'
import success from '@/components/pages/success'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'Hello',
            component: Hello
        },
        {
            path: '/index',
            name: 'index',
            component: index
        },
        {
            path: '/addTitle',
            name: 'addTitle',
            component: addTitle
        },
        {
            path: '/list',
            name: 'list',
            component: list
        },
        {
            path: '/listdetails/:listid',
            name: 'listdetails',
            component: listdetails
        },
        {
            path: '/apply',
            name: 'apply',
            component: apply
        },
        {
            path: '/error',
            name: 'error',
            component: error
        },
        {
            path: '/success',
            name: 'success',
            component: success
        }
    ]
})